package com.syc.entity;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * 映射Configuration.xml
 *
 * @author Shen Yu Chen
 * @create 2020-04-23
 **/
public class Configuration {

    //封装数据源参数
    private DataSource dataSource;

    //封装在Configuration.xml配置的mapper.xml
    //key:statementId(namespace+id)
    private Map<String, MappedStatement> mappedStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
